package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
@create: 2022-09-21 9:02
@author: 怀念天空
@Description: 
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "vehicle_repair_info_tbl")
public class VehicleRepairInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String repairId;
    private Integer repairman;

    /**
     * 材料费用
     */
    @TableField(value = "material_bills")
    private Double materialBills;

    /**
     * 工时费
     */
    @TableField(value = "worktime_bills")
    private Double worktimeBills;

    /**
     * 入场时间
     */
    @TableField(value = "in_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inTime;

    /**
     * 出厂时间
     */
    @TableField(value = "out_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    /**
     * 出厂检查人
     */
    @TableField(value = "out_check_people")
    private String outCheckPeople;

    /**
     * 经手人
     */
    @TableField(value = "handle_people")
    private String handlePeople;


    /**
     * 原因
     */
    @TableField(value = "reason")
    private String reason;

    @TableField(value = "vehicle_id")
    private String vehicleId;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 维修工
     */
    @TableField(exist = false)
    private StaffBasicInfo staffBasicInfo;

    /**
     * 车id
     */
    @TableField(exist = false)
    private VehicleInfo vehicleInfo;

}